// const proxy = require('http-proxy-middleware')


let proxyObj={}
proxyObj['/']={
    //websocket
    ws:false,
    target:'http://localhost:8888/',
    //发送请求头host会被设置target
    changeOrigin: true,
    //不重写请求地址
    pathReWrite:{
        '^/':'/'
    }
}
module.exports = {
   devServer: {
       host: 'localhost',
       port: 8889,
       proxy: proxyObj
   }
}
